package com.systemframework.sys.dto.response;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.SearchBean;
import lombok.Data;

import java.io.Serializable;

/**
 * @author summer
 * @date 2024-09-26 19:54
 */
@Data
@SearchBean(tables = "sys_menu m LEFT JOIN `sys_role_menu` rm ON m.`id`=rm.`menuId`  " +
        "LEFT JOIN sys_user_role ur ON ur.`roleId`=rm.`roleId`  ")
public class PermissionResponseDTO implements Serializable {

    @DbField("m.permission")
    private String permission;

    @DbField("ur.userId")
    private Integer userId;

    @DbField("m.type")
    private Integer type;
}
